package edu.xhu.api.id.fallback;

import edu.xhu.api.id.IdClient;
import edu.xhu.model.common.dtos.ResponseResult;
import edu.xhu.model.common.enums.AppHttpCodeEnum;
import org.springframework.stereotype.Component;

@Component
public class IdClientFallback implements IdClient {

    @Override
    public ResponseResult<?> getSegmentDistributedId(String key) {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取分布式id失败");
    }

    @Override
    public ResponseResult<?> getSnowflakeDistributedId() {
        return ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR, "获取分布式id失败");
    }
}
